package br.edu.ufcg.gmf.mdaveritas.util.pnmlconverter.entities;

public class Arc extends Element {
	private Node source;
	private Node target;
	private String inscription;

	public Arc() {

	}

	public String getInscription() {
		return inscription;
	}

	public void setInscription(String inscription) {
		this.inscription = inscription;
	}

	public Node getSource() {
		return source;
	}

	public void setSource(Node source) {
		this.source = source;
	}

	public Node getTarget() {
		return target;
	}

	public void setTarget(Node target) {
		this.target = target;
	}

	@Override
	public String toString() {
		return getSource() + "->" + getTarget();
	}

	public boolean equals(Object obj) {
		return this.getSource().equals(((Arc) obj).getSource())
				&& this.getTarget().equals(((Arc) obj).getTarget());
	}
}
